package com.montran.sort;

import java.util.Date;

import com.entidades.xml.BaseObject;

/**
 * The Class News.
 */
public class News extends BaseObject {

	/** The Constant serialVersionUID. */
	private static final long serialVersionUID = 48769L;

	/** The title. */
	private String title;

	/** The publishing date. */
	private Date publishingDate;

	/** The short description. */
	private String shortDescription;

	/** The link. */
	private String link;
	
	


	public News(String id, String title, Date publishingDate, String shortDescription,
			String link) {
		super();
		this.setId(id);
		this.title = title;
		this.publishingDate = publishingDate;
		this.shortDescription = shortDescription;
		this.link = link;
	}

	/**
	 * Gets the title.
	 * 
	 * @return the title
	 */
	public String getTitle() {
		return title;
	}

	/**
	 * Sets the title.
	 * 
	 * @param title
	 *            the new title
	 */
	public void setTitle(String title) {
		this.title = title;
	}

	/**
	 * Gets the publishing date.
	 * 
	 * @return the publishing date
	 */
	public Date getPublishingDate() {
		return publishingDate;
	}

	/**
	 * Sets the publishing date.
	 * 
	 * @param publishingDate
	 *            the new publishing date
	 */
	public void setPublishingDate(Date publishingDate) {
		this.publishingDate = publishingDate;
	}

	/**
	 * Gets the short description.
	 * 
	 * @return the short description
	 */
	public String getShortDescription() {
		return shortDescription;
	}

	/**
	 * Sets the short description.
	 * 
	 * @param shortDescription
	 *            the new short description
	 */
	public void setShortDescription(String shortDescription) {
		this.shortDescription = shortDescription;
	}


	/**
	 * Gets the link.
	 * 
	 * @return the link
	 */
	public String getLink() {
		return link;
	}

	/**
	 * Sets the link.
	 * 
	 * @param link
	 *            the new link
	 */
	public void setLink(String link) {
		this.link = link;
	}

	@Override
	public String toString() {
		return "News [id="+getId()+" title=" + title + ", publishingDate=" + publishingDate
				+ ", shortDescription=" + shortDescription + ", link=" + link
				+ "]";
	}

	


}
